<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title>
</head>
<body>
    text-align,文字对齐方式<br>
    块级元素具有该属性<br>
    水平居中,center<br>
    <div style="text-align: center;">水平居中</div>
</body>
</html>